IsValid
TheIsValid
method returns a Boolean value that indicates whether this menu bar object is equivalent to the base menu bar object from which it was copied.
ODBoolean IsValid ();
- return value
kODTrue
if this menu bar object is equivalent to the base menu bar object from which it was copied, otherwisekODFalse
.DISCUSSION
Your part calls its cached base menu bar'sIsValid
method before adding its own menus and displaying the composite menu bar. If this base menu bar is no longer valid, your part recopies the current base menu bar object by calling its window-state'sCopyBaseMenuBar
method.SEE ALSO
TheODWindowState::CopyBaseMenuBar
method (page 855).
Listing 2-30 on page 86 in OpenDoc Cookbook.
Listing 2-37 on page 94 in OpenDoc Cookbook.
"Obtaining the Menu Focus" on page 243 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help